<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@page import="java.util.*" %>
    <%@page import="com.bean.ywj.*" %>
    <%@page import="servlet.*" %>
    <jsp:useBean id="book" class="com.bean.ywj.TitleDaoImpl" scope="request"/>
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>浏览图书</title>
</head>
<body>
	<h1 align="center">浏览图书</h1>
	<table bgcolor="lightgrey">
	<tr><td>ISBN</td><td>书名</td><td>版本</td><td>版权</td><td>出版社ID</td><td>封面</td><td>价格</td></tr>
	<%
	List list=book.getTitles();
	Title titles=null;
	for(int i=0;i<list.size();i++){
		titles=(Title)list.get(i);
		%>
		<tr bgcolor=cyan>
		<td><a href="servlet/ToViewTitle?isbn=<%=titles.getIsbn()%>" title="图书详情">
		<%=titles.getIsbn() %></a></td>
		<td><%=titles.getTitle() %></td>
		<td><%=titles.getEditionNumber() %></td>
		<td><%=titles.getCopyright()%></td>
		<td><%=titles.getPublisherId() %></td>
		<td><%=titles.getImageFile() %></td>
		<td><%=titles.getPrice()%></td>
		
		</tr>
	<%} %>
	
	
	
		
	</table>

</body>
</html>